package cn.cttic.link.api;


import cn.cttic.common.core.exception.link.LinkException;
import cn.cttic.link.api.domain.vo.GisTimePosistionVo;
import cn.cttic.resource.api.domain.RemoteSms;

/**
 * 发行系统接口服务
 *
 * @author Times.Studio
 */
public interface RemoteThirdDistributeService {

    /**
     * 检测终端信息
     *
     * @param imei IMEI 号码
     * @data {"code":200,"msg":null,"data":{"latitude":"0","longitude":"0","sendTime":""}}
     * @return 结果
     */
    GisTimePosistionVo checkTerminalInfo(String orderId, String imei);

    /**
     * 终端注册
     *
     * @param imei IMEI 号码
     * @in_data {"cameraNumber": 2, "command": 1, "createTime": "2024-09-30 11:10:00", "terminalId": "14163324318"}
     * @return 结果
     */
    boolean registerTerminal(String orderId, String imei);

    /**
     * 终端注册
     *
     * @param imei IMEI 号码
     * @in_data {"cameraNumber": 2, "command": 1, "createTime": "2024-09-30 11:10:00", "terminalId": "14163324318"}
     * @return 结果
     */
    boolean queryTerminal(String orderId, String imei);

    /**
     * 终端占用
     *
     * @param imei IMEI 号码
     * @return 结果
     */
    boolean takeUpTerminal(String orderId, String imei);

    /**
     * 释放终端
     *
     * @param imei IMEI 号码
     * @return 结果
     */
    boolean releaseTerminal(String orderId, String imei);



}
